<?php										
	if( isset($_POST['submit']))
	{
		if( $_SESSION['security_code'] == $_POST['security_code'] && !empty($_SESSION['security_code'] ) ) 				   		{
			echo '<input type="submit" value="Registrarse" class="botonGris"/><br /><br />';
			unset($_SESSION['security_code']);
		}
		else 
		{
			echo '<div class="error">Codigo de activacion incorrecto</div>';
		}
	} 
	else
	{
?>
<form action="<?php echo $view->linkTo('/Registro'); ?>" method="post">
	<img src="<?php echo $view->getBaseUrl();?>/lib/Model3/Captcha/CaptchaSecurityImages.php?width=100&height=40&characters=5" /><br />
	<label for="security_code">Codigo de acttivacion: </label>
     <input id="security_code" name="security_code" type="text" class="input200"/><br />
	<input type="submit" name="submit" value="Activar" />
</form>
<?php } ?>